package com.wwmz.decorator.pattern.battercake.v2;

/**
 * Created by wumz on 2020/9/19 21:29
 */
public class BattercakeDecotator extends Battercake {

    private Battercake battercake;

    public BattercakeDecotator(Battercake battercake) {
        this.battercake = battercake;
    }

    @Override
    protected String getMsg() {
        return this.battercake.getMsg();
    }

    @Override
    protected int getPrice() {
        return this.battercake.getPrice();
    }
}
